package com.shop.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 文章分类 实体类。
 *
 * @author 彭新才
 * @since 2024-10-15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "文章分类")
@Table(value = "shop_article_category")
public class ShopArticleCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 分类id
     */
    @Id(keyType = KeyType.Auto)
    @Schema(description = "分类id")
    private Long id;

    /**
     * 父id
     */
    @Schema(description = "父id")
    private Long pid;

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 是否启用（0否，1是）
     */
    @Schema(description = "是否启用（0否，1是）")
    private Integer isEnable;

    /**
     * 顺序
     */
    @Schema(description = "顺序")
    private Integer sort;

    /**
     * 添加时间
     */
    @Schema(description = "添加时间")
    private Long addTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private Long updTime;

}
